#ifdef ACCOUNTVERIFY_EXPORTS
#define ACCOUNTVERIFY_API __declspec(dllexport)
#else
#define ACCOUNTVERIFY_API __declspec(dllimport)
#endif

#include <singleton.h>
#include <typedef.h>
#include <boost/function.hpp>

class ACCOUNTVERIFY_API CAccountVerify : public CSingleton<CAccountVerify>
{
    friend class CSingleton<CAccountVerify>;
public:
    typedef boost::function<void (const char *, bool, uint32)> TCallback;

    CAccountVerify();

    ~CAccountVerify();

    bool Init();

    bool Run();

    void Verify(const char * szUser, const char * szPassword, TCallback fCallback );
};


